package cn.sangyy.car.mapper;

import cn.sangyy.car.domain.Car;
import cn.sangyy.car.query.CarQuery;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author sangyangyang
 * @since 2023-05-26
 */
public interface CarMapper extends BaseMapper<Car> {

    List<Car> getPageList(Page<Car> carPage, CarQuery query);

    void updateInfo(Car car);

    List<Car> selectBatch(List<Long> ids);

    void updateOnSaleInfo(@Param("ids") List<Long> ids,@Param("state") Integer state);
}
